package lab02.Test10;

/**
 * Created by mac on 2017/10/25.
 */
public class People {

    //属性：姓名，性别，年龄，身份证号

    String name;
    int gender;
    int age;
    String idcard;

    //方法：吃饭，睡觉
    void eat(){}
    void sleep(){}
    String getString(){
        return name+'|'+gender+'|'+age+'|'+idcard;
    }
}
